import React from 'react';
import { Outlet } from 'react-router-dom';
import { observer } from 'mobx-react-lite';
import Loading from './loading';
import Alert from './alert';

const Layout = observer(() => {
    return (
        <main className='root-layout relative w-full h-full'>
            <Loading />
            <Alert />
            <Outlet />
        </main>
    );
});

export default Layout;
